#version 460
#define GLSLIFY 1

//GL_EXT_scalar_block_layout
/*layout(std140, binding = 5) uniform U5_Matrix {
	int vertOffset;
	int InstanceOffset;
};*/

//layout(location = 0) in vec2 inPos;
//layout(location = 1) in vec2 inWeights;
//layout(location = 2) in vec2 inNormal;

//layout(location = 0) out vec4 vColor;
//layout(location = 1) out uint vIndirect;
//layout(location = 2) out uint vInstance;
/*out gl_PerVertex {
	vec4	gl_Position;
	float	gl_PointSize;
};*/

layout(location = 1) out VS_GS_VERTEX {
	uint vInstance;
}vertex_in;

out gl_PerVertex {
	vec4	gl_Position;
	float	gl_PointSize;
};

//vec2 pos[4] = {vec2(10.0, 10.0), vec2(100.0, 10.0), vec2(10.0, 100.0), vec2(100.0, 100.0)};

void main(void){
	//vertex_in.vColor = f_buildColor(InstanceColor[gl_InstanceIndex]);
	//vertex_in.vIndirect = gl_DrawID;
	//vertex_in.vWeights = gl_InstanceIndex;
	vertex_in.vInstance = gl_InstanceIndex;

	//uint VertOffset = m_VertOffset[gl_InstanceIndex];
	vec4 v = vec4(0.0, 0.0, 0.0, 1.0);
	
	gl_PointSize = 4.0;
	gl_Position = v;
}

